package com.iknow.view.widget.media;

import com.iknow.IKnowApiV4;
import com.iknow.ServerPath;
import java.util.Map;

public class IKAudioInfo
{
  private String enumber = null;
  private String lrc;
  private long playTime;
  private String url = null;

  public IKAudioInfo()
  {
    this.lrc = null;
    this.playTime = 0L;
  }

  public IKAudioInfo(Map<String, Object> paramMap)
  {
    this.lrc = null;
    this.playTime = 0L;
    setEnumber((String)paramMap.get("src"));
    setLrc((String)paramMap.get("lrc"));
  }

  public boolean equals(Object paramObject)
  {
    boolean bool;
    if (paramObject instanceof IKAudioInfo)
      bool = paramObject.toString().equals(toString());
    while (true)
    {
      return bool;
      bool = false;
    }
  }

  public String getEnumber()
  {
    return this.enumber;
  }

  public String getLrc()
  {
    return this.lrc;
  }

  public long getPlayTime()
  {
    return this.playTime;
  }

  public String getUrl()
  {
    return IKnowApiV4.formatFileUrl(this.url);
  }

  public void setEnumber(String paramString)
  {
    this.enumber = paramString;
    this.url = ServerPath.fillPath("/download.do?enumber=" + paramString);
  }

  public void setLrc(String paramString)
  {
    this.lrc = paramString;
  }

  public void setPlayTime(long paramLong)
  {
    this.playTime = paramLong;
  }

  public void setUrl(String paramString)
  {
    this.url = paramString;
  }

  public String toString()
  {
    return this.enumber + " (" + this.playTime + ")";
  }
}